<template>
  <div class="app-container">
    <div class="main-plane">
      <div class="main-inner">
        <!-- 左侧控制区域 -->
        <div class="l_control"> 
          组件
        </div>
        <!-- 中间组件预览区域 -->
        <div class="c_comp">
          <!-- 分为两部分 -->
          <div class="t_options">
            工具栏
          </div>
          <div class="b_editor">
            底部
          </div>
        </div>
        <!-- 右侧编辑区域 -->
        <div class="r_editor">
          属性编辑区域
        </div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts" name="lowCode">




















</script>

<style scoped lang="scss">
$minWidth: 300px;
$height: 100%;
$borRadius: 4px;
.app-container{
  height: $height;
  width: 100%;
}
.main-plane{
  position: relative;
  height: $height;
}
.main-plane .main-inner{
    overflow: hidden;
    height: $height;
}
.l_control{
  float: left;
  background-color: #fff;
  min-width: $minWidth;
  height: $height;
  padding:10px;
  border-radius: $borRadius;
}
.c_comp{
  display: inline-block;
  padding: 0 20px;
  height: $height;
  width: calc($height - $minWidth - $minWidth);
  .t_options{
    height: 40px;
    line-height: 40px;
    padding: 0 10px;
    margin-bottom: 10px;
    background: #fff;
    border-radius: $borRadius;
  }
  .b_editor{
    height: calc($height - 40px);
    background: #fff;
    padding:10px;
    border-radius: $borRadius;
  }
}
.r_editor{
  float: right;
  background: #fff;
  height: $height;
  width: $minWidth;
  border-radius: $borRadius;
  padding:10px;
}
</style>